Package com.cisco.pt.ipc.sim.impl
Class PolicyClassSetDscpImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.PolicyClassSetDscpImpl
- All Implemented Interfaces:
IPCObject,PolicyClassSetDscp
Information provided by the PKI file:
\class PolicyClassSetDscp
\brief PolicyClassSetDscp handles and manipulates policy-map class DSCP and IP precedence.
\example network().getDevice("Router0").getPolicyMapManager().getPolicyMapAt(0).getClassAt(0).getSetDscpPrec()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionPolicyClassSetDscpImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
PolicyClassSetDscpImpl
public PolicyClassSetDscpImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getType
Information provided by the PKI file:
\brief Returns the policy map class type. \return QoS::EWredType, the QoS policy type. QoS policy types: eWredDscp = 0, eWredPrec = 1- Specified by:
getTypein interfacePolicyClassSetDscp- Returns:
- WredType Returns a WredType
-
isIpv4Only
public boolean isIpv4Only()Information provided by the PKI file:
\brief Returns true if the policy map class is for IPv4 only, otherwise false. \return bool, true if the policy map class is for IPv4 only, otherwise false.- Specified by:
isIpv4Onlyin interfacePolicyClassSetDscp- Returns:
- boolean Returns a boolean
-
getValue
public int getValue()Information provided by the PKI file:
\brief Returns the value of the DSCP or IP precedence. \return int, the value of the DSCP or IP precedence.- Specified by:
getValuein interfacePolicyClassSetDscp- Returns:
- int Returns a int
-
update
Information provided by the PKI file:
\brief Updates the policy map class with the specified type and value. \param QoS::EWredType, the QoS policy type. QoS policy types: eWredDscp = 0, eWredPrec = 1 \param ipv4Only, true for IPv4 only, false for IPv4 and IPv6. \param value, the value for the QoS policy type.- Specified by:
updatein interfacePolicyClassSetDscp- Parameters:
type- Takes in a parameter of typeipv4Only- Takes in a parameter of ipv4Onlyvalue- Takes in a parameter of value
-
toString
Information provided by the PKI file:
\brief Returns the output of the policy map class. \param showIpType, true to display the ip type, false to not display it. \return string, the output of the policy map class.- Specified by:
toStringin interfacePolicyClassSetDscp- Parameters:
showIpType- Takes in a parameter of showIpType- Returns:
- String Returns a String
-